package com.cookor.poi.modules.phy.entity;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.modules.tenant.entity.TTenant;
import org.hibernate.validator.constraints.Length;

public class TFork extends DataEntity<TFork> {
  private static final long serialVersionUID = 1L;
  
  private Integer tenantId;
  
  private String openId;
  
  private Integer doctorId;
  
  private Integer status;
  
  private TDoctor doctor;
  
  private TTenant tenant;
  
  public TFork() {}
  
  public TFork(String id) {
    super(id);
  }
  
  @Length(min = 1, max = 11, message = "租户id长度必须介于 1 和 11 之间")
  public Integer getTenantId() {
    return this.tenantId;
  }
  
  public void setTenantId(Integer tenantId) {
    this.tenantId = tenantId;
  }
  
  @Length(min = 1, max = 32, message = "open_id长度必须介于 1 和 32 之间")
  public String getOpenId() {
    return this.openId;
  }
  
  public void setOpenId(String openId) {
    this.openId = openId;
  }
  
  @Length(min = 1, max = 11, message = "医生id长度必须介于 1 和 11 之间")
  public Integer getDoctorId() {
    return this.doctorId;
  }
  
  public void setDoctorId(Integer doctorId) {
    this.doctorId = doctorId;
  }
  
  public TDoctor getDoctor() {
    return this.doctor;
  }
  
  public void setDoctor(TDoctor doctor) {
    this.doctor = doctor;
  }
  
  public TTenant getTenant() {
    return this.tenant;
  }
  
  public void setTenant(TTenant tenant) {
    this.tenant = tenant;
  }
  
  public Integer getStatus() {
    return this.status;
  }
  
  public void setStatus(Integer status) {
    this.status = status;
  }
}
